Adapted build_package to be able to build native packages with it