Removing pthread_cancel() for the termination of GPIO monitoring threads.

pthread_cancel() is not guaranteed to succeed; replacing by a safer
mechanism.
Adding an Android library project for pi4j-core