ctl: fix build with gcc47