Fix wierd msvc linker issue by using istringstream