Make the library typecheck.

Note: It still fails to build as a dynamic library even with -dynamic and -fPIC.