Fix the usage of the TARGET_OS_MAC conditional