pm2-c: some compile fixes