compile fix for java7