Fix DSO missing from command line by adding lpthread to linker