implement rdtscp for mac, add multithreaded test