Fix build.xml filtering should happen before compiling