Added MSVC12 CMake support
Fixed broken foreach
Merge pull request #13 from mrwonko/cmakefixes

CMake: MSVC12 support & Foreach Fix