Added --maxTextureSize command line parameter. Default to 512 on Android for now.
Fix Android build.