Fix linking error related to errno