Fix building on non OSX/linux/windows OS.