fixed some small compile issues