Linux: fixed compilation errors