Update configure script to enable static linking