Make LibEvent compatible with Android NDK