new add_library macro

Smarter, quicker, prettier...