fix multiple building issues under Microsoft Visual C++ 2013.

Fixes compile errors of `time(0)`, `log(2)` and `pc_client_t* client = timer->data;`.