fixed compile error in linux