pkgbuild now cleans up installed file mess and adds some optional dependencies