perl: Fix install target for separated builds.
Fix rpcgen call for separated builds.