adjust to make compilable in Windows