Fix compile error on pre JDK 7.