1.8.1 dev libc compat

From Bitcoin 49df14: Added new ctor and dtor for length_error() symbol, to allow compat < glibc 3.4.15, tested on old Linux VMs with gcc 4.1.2, glibc 2.5-118