Adding the obj folder to gitignore and fixing a few small compiler warnings.