Compile fixes for gcc/ubuntu + gitignore additions

I have not managed to compile the whole project on VC++ yet, but as far as I can tell this breaks nothing there.
I have not tested clang or MacOS.