Fixing errors detected while building on OS X 10.9