Add download command.
Change 'AFCFileRefRead' prototype because type of 'len' seem to be a long (crash happens, if an unsigned int is used)
Use 'unsigned long' as size for 'AFCFileRefRead'
Update build script: use clang compiler and automatically retrieve MacsOSX SDK version