[WIP/RFC] Add unit tests for buffer.c and fileio.c

To clarify, the build was broken because a recent change made it so that `MAXPATHL` was not always defined when including `globals.h` I believe it was work to decouple `vim.h` and `globals.h` so moving the `MAXPATHL` definition seems like the right idea.