Better way to check installed dependencies, and solved CROSS_COMPILE value