Added compiling option to the ant build file.
Fixed because on jdk 7u21 changes how ThreadContext objects are stored.