Got this solution to compile with VS on Windows.