BUG: fix windows compilation bug, see detail

the previous version causes compilation error in WIndows. Because there are default parameters in function implementation. this is corrected.