Fix build of embedded perl if options perl is selected.