Fix linking. All tests pass.

Fixes #12