Make the library loading platform independent

Closes #10