Fixes for arm-none-eabi build:
* Separate library and test builds.
* Allow building without any backend.
* Remove tinycthread from the standard build.
* Include stdint.h instead of redefining the types.