Fix project file generation without demos

Also adds the _CRT_SECURE_NO_WARNINGS definition to fix some compilation
warnings for visual studio.
Merge pull request #11 from asarium/cmakeFix

Fix project file generation without demos