alloc: fail on OOM even if CHEESY_ALLOC is set
charset: add a missing declaration