Made it compile on x86_64 OSX with clang