Merge pull request #30 from ThePhD/master

Fixed segfault on GCC, updated ninja file for easier windows builds (and easier debug builds)