planner.c is now planner.cpp and may use c++11