made library fully static