fix Issue 9723 - add missing main() when compiling exe with -unittest
Merge pull request #1753 from WalterBright/fix9723

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