Fix the Exceptions issue with gcc.
Move allocs_with_checks.