Objective-C++ template compile problem