Support static linking for libmond, libircclient