ant builds ok.

fixes for ant builder
Merge pull request #728 from ricardoquesada/build_xml_fixes

ant builds ok.