Fixed up CMakeLists.txt so the C version works properly with the new library paths.