Small improvements

I added `curl-config --cflags` to the build.sh. It's required for BSD.
Also bumped up REDDIT_URL_BASE_LENGTH. Not sure how the current code doesn't segfault without this.

I have some other larger changes, but they are a bit more controversial...