Add check for dlopen library in configure script