Fixed build error for openjdk6