more portable use of ncurses
do not use std::{to_string,stoi} as they cause problems with cygwin
enable /proc/ method for runtime_directory with cygwin
add missing errno include to file.cc