Link to necssary libraries on Linux.

Closes #12.
Closes #7.