Added gradle flavors for different native platforms, and buildNative task.
Use own build script instead of relying on syncthing build target.
Added mips compilation code (yet unsupported).