added build requirement package detection and installation