Minimal INPUT implementation for POSIX/Win32 compiler runtime