Make prepareBuildSettings, extractBuildOptions and setTarget const
Added .gitignore
Added singleFile support
Merge pull request #364 from Geod24/singlefile

Add --build-mode=singleFile switch. Fixes #17.