Use libc stdio instead of raw open/read calls.