Make linkable on Ubuntu 12.04LTS.
Work around core dump for tests.