Remove warnings when building on OS X