Add some file functions

popen, pclose, fgetc and fflush
Merge branch 'master' of github.com:idris-lang/Idris-dev