Allow modules to be exclude in create_lib.

It is sometimes desirable to exclude modules from user
libraries (in a similar manner to the stdlib exclusions).