Make compilable with Visual C++