Bug fixes

- Windows simulator fullscreen mode was red screen sometimes.
- Windows simulator was unstable.
- Improve flmml engine.