ant builds ok.

fixes for ant builder