Enable modules.
Disable assertions in release.
Added some common test flags.