Can you ifdef this to be only set when we are on Apple with your compiler? Similar to https://github.com/cooperz/pcl/blob/1a219500f12567fd29be20ffe4e13a0f026a84e9/CMakeLists.txt#L78