Added support for building shared libs, removed apps