Compile the main source file as C++
Use pkg-config