add /usr/local/lib to LD_FLAGS to fix linux build