rm'd dylibs and moved -lpthread flag

Fixes #10