fixed compilation errors by some condition (MSVC etc)