MacSpecific hack mainly for JDK 7