JDK7 u40 stack size fixes