Merge "[MIPS] Add portable versions of wait(), wait3() and wait4()"