use -static linking when linking libr3