simulator: disable assertions when in release mode (g++ & msvc)