Speed up compiler compilation for Java 1.7

Manually tested on Mac, Win, Linux platforms.