Fix Windows build after #862. Thanks to @harig for the report.
Merge pull request #866 from nico/winfix

Fix Windows build after #862. Thanks to @harig for the report.
Don't leave lone closing parens.
Reindent ninja-mode.el using Emacs.

Emacs knows best how to indent Emacs Lisp.
Use double semicolon comments.
Use quasi-quoting instead of list+cons.
Set comment-start buffer-locally, not globally.
Use prog-mode only when available.

This allows the mode to be used with Emacsen older than 24, which
did not have prog-mode.
Set up a proper syntax table for ninja-mode.

Since quotes are not meant to be treated as string delimiters,
the syntax table is the place to tell Emacs so.

This also means syntactic fontification can be reenabled and the
font-lock keyword entry for comments removed.
Correctly recognize comments.
Remove unnecessary regexp group.
Don't use dotted list syntax unless necessary.
Avoid putting properties past the end of the buffer.
Correctly recognize a comment if the previous line is a comment ending in $.