Fix Visual Studio Project build

Fix two issues with project builds (the default cmake Generator on
Windows, jenkins uses jom):
- build configuration linker flags have to be defined
- only c++ flags are used

Change-Id: I773f45d0937f6bad9a2008ef1cfcbfc6c58a13a0