changed to static linkage against the core library