fixes errors for generating OS X packages