rename compile to Compile
make Package.Srcdir a field, not a method
simplify newPackage