macosx: update package building to modern tools

PackageMaker has been deprecated since Xcode 4.6.
pkgbuild and productbuild have been available since 10.6.6