Fix handling of build messages on Java 5 and Java 6
Merge pull request #1 from sharwell/javac

Fix handling of build messages on Java 5 and Java 6