Fix typo and add CMakeLists file. Now builds on Unix platforms