Handle linker options per module, outsource module handling to script

Each module now specifies its own linker options by providing a LIBS
file. This should avoid having no unsupported modules, yet unsupported
linker options.

Add shell script to handle module enabling/disabling. It's a *lot* more
readable (seriously, Makefiles are the worst).