Modified inclusion of <ctime> to <time.h>


[SVN r37101]
Added a couple of Borland related workarounds


[SVN r37102]