configure: Fix some warnings on OSX