[PLAT-5476] Fix warnings in 64-bit build and suppress console window