switched to dynamic linkage - this was cause of segfaults in testing.