On versions of OSX < 10.10 fix compilation

On OSX < 10.10, we need to check for the existance of MAC_OS_X_VERSION_10_10 at all