a fix for building on mountain lion