Check for dlopen() and enable/disable JIT stuff accordingly

This hopefully addresses the issue reported by @benkirk in #383 where compilation fails on systems which lack a library that provides the ```dlopen()``` call. 

Could you test this on your OpenSuse box?