Prototype commit
Makes it support multiple lib files

Maybe we could introduce a php script to fixup the inclusion
bewteen them
Add helper macros