Revert "pm2-c: some compile fixes"

This reverts commit 8786684fb909c5f744a83face7a77924328c9ca0.
ariesve: fixed reboot to recovery