fix Issue 9723 - add missing main() when compiling exe with -unittest