CMake: Ignore failure when working as submodule
Improve libowncloudsync

* Introduce TokenCredentials
* Introduce static compiling
* Have compile flags for smaller compile