Fixed process_wait() bug and select BOCHS emulator