Some changes needed to compile with GCC 4.7+
Proper gitignore