Fixed small compile-time errors