[mac] suppress compiler warnings under osx