Fix build to work with Sun Java.