Fixes issues with JAWTRenderer on Java 7 under OS X. Based on contributions by Ingo Bauersachs.