fix build on OSX

I'm not sure what `-lrt` is for but it doesn't seem to be needed on any of the platforms I tried...