fix minimal build