Added -pthread flag to unix compilation example