Added preinstall script to download platform dependencies