Install PageSpeed dependencies only if required