Fix weird link error on Linux by using #include <errno.h>
instead of extern int errno;