fixed a couple of compile issues