add .gitignore file
fix compile error (EOF not defined) by including necessary header file