ant build fix

Not sure why, but I couldn't build with ant without these modifications.