fixes due to compile problems on ubuntu