uloop: fix build using C++ compilers