Corrected some syntax errors which have been in for a long time.
TODO: resvise build.xml; it stinks ...