Build library for devices. Add mingw support.