Fix some compiler warnings && add .gitignore