Whoops, typos and silly stuff.
Now this properly compiles, but it's having issues with free() on my computer.