add working Pkg.build support on Mac