Some progress towards working cmake on linux

Also quoted a bunch of stuff #280