Fixed minor compilation errors