Merge pull request #1 from alessandro40/patches-2.0

Adapt LibEvent to work with Android NDK