made accept, send, recv thread-safe
clean object files