More work on the CMake file.
Get the Linux version linking (Note that it currently only makes a static library, so it's not technically linking).