Include errno.h and stdlib.h (free() is used) in common-inl.h