simplify shared library usage on Linux
use PTHREAD and RT flags
Merge pull request #2 from steinwurf/simplify-shared-libs

Simplify shared libs on Linux