Fixed C++ syntax errors and added library path. It compiles OK now.