Prepare build for portable runtime