fixes for making a docker image from os x