[fix] Embed custom jemalloc into libaml

Force libtool to static link the PIC version of our jemalloc import into
libaml, making libaml standalone. This requires us to test some
additional libraries in our own configure (pthread, and dlopen).

This also solves the long-standing issue of `make check` only working after
`make install`, while removing our custom jemalloc from the installed
libraries.

Fixes #26.
4 jobs for fix-make-check in 9 minutes and 17 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #28606
make:generic

00:05:09

passed #28607
make:knl

00:04:06

passed #28604
repoquality

00:00:02

failed #28605
repoquality

00:00:02