fix debug for non-linux