Fixed compiling for MacOS X
keep -lrt for now