Use $(AR) instead of explicitly calling 'ar'

This simplifies overriding the command used, e.g. for cross
compilation.
Merge pull request #63 from mstorsjo/crossbuild

Use $(AR) instead of explicitly calling 'ar'