build: moved lmhosts.c into a common subsystem