fix Issue 11610 - Compiler core dumps on FreeBSD, compiles forever on Linux