fixed compilation errors, added build.xml