Fixed undefined reference to EINTR error