Fixed package building on MacOSX