improved build steps in os x