[osx-port] fix missing O_CLOEXEC / O_NONBLOCK on osx
[osx-port] force libstdc++ only on osx