rearrange to allow building minified platform files
modernize submodules