Allow specifying libraries to link to in kernels

The kernel class can be passed the names and directories which are linked at compile time.