Using C++11 proved to be a nice but unstable solution. Trying with
something more standard POSIX.