Try to staticly link eventstore