minuitwrp: use a whitelist for the input device instead of a hardcoded ignore list

 * use a whitelist for the input device to listen on, every other will be ignored

Change-Id: I1296a45ec3d5ca0bca2a9e2601b0710e2c030fde
libdl should also be linked to binary

Change-Id: I98f9c90b0a7af591bdbcf646f59068f9915d49c7
on stock android, pthread_cancel and phtread_setcancelstate doesn't exist

Change-Id: Icbe281a301004ae2bcda4821a50fb4a41088e85d