build: disable assertions in release builds

refs #2139

Change-Id: Id4cc0b360848d06a0d1e5759cf2017cd1b4227ec