Compile fix for mac