Add static library to lpthread module