fix a couple of compile problems