Add options to build lite version, shared libs