port some freebsd flags to osx