Fix namespace compilation errors