Fixed undefined reference to EWOULDBLOCK error