libcore legacy inclusion fixed for Android compilation