Okay, so -isystem on the whole /usr/include directory appears to prevent compiling. I suspect this might be something about changing the priority of includes. Fixed.