Fixed undefined reference to Errno