SHA fails to compile on x86_64 if compiled with custom flags, without