Ant build support

* build.xml for Ant
* necessary library re-organization
* compatiblity changes to code
* ready for Fdroid