Fix linux compilation errors