Explicitly check for function in linked library.

Apparently early versions of systemd or just Fedora 18 have the appropriate
headers and systemd shared library but the function is not available.