Adjust flags for OS X compilation.