Fix Mac OS X compilation issue

Real time clock is not implemented in Mac OS X. Here is a workaround.