Add LIB_TARGET flag to source file to ignore main function if we need a lib target
Add pcieSWLibrary and cleanup