Changed include order.
Added getWindow().
Include order.
exit func.
Added some assertions.
include <string>
Tweaks for non-Windoze 7 platforms.