fix compile for unix