fix permgen on java 8 and above