Tweaks to make android engine to compile, plus removing libcurl and making AVFoundation optional