Move flag registration to its own function.

Also add version check to travis build.

Affected issues:
	surtrstudios/weyland#4
Add check for existence of the build file.

Affected issues:
	surtrstudios/weyland#4
Use the correct command to check CC version.
Add better comments to util functions.
Merge branch 'development' of https://github.com/surtrstudios/weyland into development
Remove the CC version check.
Merge branch 'release-0.1.0' into development
Merge pull request #12 from smkell/development

Minor fixes and improvements.