fixed declaration error in Linux