Move the if for GCC 4 to an elseif so it does not interfere with MacOS