Removal of pthread library for linking