fix to biild in java 7