Use git submodules for libs, fix compilation, remove library sourcecode