A few minor changes.

Release build now builds, state->update() is called before the first
frame, removed useless default constructor in window,
EXIT_SUCCESS/EXIT_FAILIURE rather than 1/0 for return codes.
Fixed event handling.