Many changes to support build without Netbeans.
Fixed the build.xml issues.
Added package targets to build.xml