Fixed missing linking to dl library