Set the version statically
Link with -ldl do not remove configure
Configure script