Making things compile and link with MSVC