Resident library support on PRX loader
Fixed callback returns and sys_prx arguments