fix SIGFPE in spring-headless