Updating makefiles and adding libs submodule