Change linking convention

Fixes #7