Added linker stuff and moved everything from gist.