Correct build orders of automake-based projects.
Update the submodules to the latest code.