add option to specify 'part of' library

Each generated file declares its own library, which is troublesome if you want the files to be part of an existing library.