Added elvgdb to .gitignore.
Added XQuartz as default for darwin builds with X11.
Fixed what I think is a bug: empty statement after `if'.
Fixed compiler warning.
Fixed broken error detection for opening files on Unix.