link flag fix.

Missing `-ldl` may cause compile error.