Make build.common BSD friendly