Fix build stall on perl