fixed compile error in Linux