Misc fixes

See: pspdev/psptoolchain#48