Revert "Enable loadable module support"

This reverts commit 9508415f107671c2851c6d238d125f41c2966c07.