Handle clock_gettime() in librt
Link to zlib if PolarSSL is compiled with support for it. [Patch from hasufell].