fix building with embedded libltdl