Add osx compiler checks