account for shared libraries in init macro