Added support for building lgpl