Update build file
Fix compatibility issue with JDK7