Fix mac build: use -lrt only on linux.

Change-Id: I25e6058d9003fa52ef3c8bd153c2108712ce7f96
1 file changed