Dynamic library generation and proper symbols export