fix Issue 11610 - Compiler core dumps on FreeBSD, compiles forever on Linux
Merge pull request #2912 from 9rnsr/fix11610

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