Add -UNDEBUG to the dbg flags, which seems to be necessary for some linux systems