bugfix: added dl and pthread dependencies