Use $AR to archive static library instead of plain 'ar'
Some addition to r7rs.scm