Fixed build warnings and removed use of amazon s3 as cdn