Fix module build flags for Windows