few fixes for compatibility with clang compiler that is bundled with XCode on OSX Yosemite