[libc]fix assert, change DEBUG to NDEBUG