MacSpecifics fix mainly for JDK 7