fixed compile fail due to lack of file descriptor for stderr