Does anyone know of a good way to tell whether a platform needs -ldl ? pkg-config maybe?