Update pause and dialog states. Changes to build system.
Optimized release build.