Improved compilation support for Mac (Clang)