Fixed bug which prevents build in Java 1.6.