Added -lpthread -lrt