Fix Solaris not being able to find modules without pkg-config.

Thanks to @ShutterQuick for pointing out this problem.