Port of Popt for MSVC