Make sure $errno is set, fixes an issue with HHVM where $errno is null.