SConstruct: Fix for new ld versions
Move source files around, fix Makefile and make a proper CMake build system
Add install targets to CMake