I solved the problem with 'Undefined.. ___main' just by
loading a fresh version 3.3 (I believe, I solved it).
Now, with the new version:
1. 'mktime': I needed to replace it by 'timelocal'
2. declaration of 'ctime' : conflict with 'time.h'
3. :
ld: Undefined symbol
_fMapTraceDestroy
_fMapShowVirtualMultiTrace
Sergey Petrov