add size optimization flags

* Also silence submodule annoyances