Disable C++ assertions for release builds

This fixes a crash for the FEN `r1bq1rk1/pp1nbppp/2p1p3/2Pp3n/1P1P1B2/2NBPN2/P4PPP/R2QK2R b KQ b3 0 9`