better libltdl init and gcc warning fixes

Fixes narrowing conversion warning with GCC 4.7.3 (C++11).
Better libltdl initialization in autoconf.