Fix build process for croos platform install