Optimize loading of resources.
Fix some headers.
Oops, broke JDK 1.6.
Build on JDK 1.8 (early access build 71).