Fail hard if ctypes cannot find a library for inspection

Inspired by #52.