Fixed a few small compile issues