It seems like `-ldl` may need to be at the end of args.

At least with some versions of Gcc.

Expected to fix #758, though external confirmation is needed.