fix build.xml to exlude the unwanted lib.  and some small tidy up