fix some compilation warnings
fix git ignore