Correct typo in path for CMake Windows
Add check for missing icon file

Raise an error if we can't find the icon file instead of crashing
silently.
Add type cast to prevent compile error in VS