Fixed compile issues under linux.