add possibility to output GC messages to a file gcx.log

writing to stdout isn't helpful for non-console-application or if the application generates output itself.
This also adds a time stamp to each line.
Urgh, this is ABI-dependent.