Fix on linux and windows platforms