Clean up and improve .gitignore

Add * suffix to executable names for the sake of Windows,
where they get .exe extension automatically appended.
Simplify ass_utils.c code

Mainly cosmetic, but maybe some optimizations the compiler misses.