fix defined on linux