Fix compiling under clang

With this fix main.cpp compiles and runs under linux