Revert "Submodule linking"

This reverts commit 210be696696a9590773438a22e4e9ada825c0252.