Fix #139: Set the MaxPermSize

This removes warnings and will hopefully fix the recent crashes.