#include <cerrno> for missing errno definition