This should help with second rejoin bug. (reverting previous workaround over frontend bug and making a new one)
MISC_DIR := $(call my-dir)
LOCAL_PATH := MISC_DIR
include $(MISC_DIR)/liblua/Android.mk
include $(MISC_DIR)/libphysfs/Android.mk
include $(MISC_DIR)/libphyslayer/Android.mk