fix Makefile to actually build
complete refactor

- increased performance by a ton
- less leaky string handling
- proper `extern`s
- separated "main" from "lorem"