(linux) Fix some compile problems