Compile fix for OS X Mavericks