ungly fix for compiling exp on mac