Raises exception if native library can not be loaded.