Added debug and release build memchecks.