Prepare build for portable runtime - WIP