Fixed MacOS X build