Clean up HSCH responses for both terminated and completed I/O operations; correct various GCC'isms