plugins: replace libdl with gmodule

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>