added g++ stdlib asserts for debug builds