fix compile errors in dalvik frontend