Added flush and eof instead of available. Some compile fixes
Added flush and eof instead of available. Some compile fixes


SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl,SimonKagstrom/cibyl