Making the library static without macros