.gitignore more files, fix compiler warning in assertion macro

Adds the intermediaries from make (obj_projectname_platform), more Visual Studio ignorables, Mac/Linux Source build products.

Fixes a compiler warning in an assertion macro by explicitly adding braces to two `if` statements.