Lib: add missing errno.h header and fix a mimetype point type

Signed-off-by: Eduardo Silva <edsiper@gmail.com>