Various fixes

Together with [my PR](https://github.com/pspdev/psptoolchain/pull/42) to psptoolchain, this fixes every package that didn't compile, aside from `SDL_gfx` (which needs a `./compile` script, and I don't know enough about autotools to fix that).

This closes #17, #13, #12 and #11, and succeeds #16.