Added -pthread to the unix build