Various simple C helpers intended to be used as a git submodule