Fixed compile problems on linux