made ldl backwards compatible with gcc4.4
made ldl backwards compatible with gcc4.4