Fix for GCC MIPS toolchain

Closes #143

Patch was tested on the stable version. Did NOT try compiling the next branch