Use -ldl when needed