Compile fix for Mac