Fork from http://cgit.freedesktop.org/libfprint/libfprint/