bug fixing and build improvement

Improving ant scripts to include java 7 related files in build.
Fix freeze on automatic class creation on first access.
Fix small typo in 2q test.