Fixed compile problems on Linux