Make open_exec() and sys_uselib() use may_open(), instead of duplicating its parts