fix issue under linux

patch from abrarsyed