use static library to help gprof work correctly