Fix adding sources and headers for libraries stored under the hardware folder