Fix int type inference in range calls
Merge pull request #6 from tivek/patch-1

Fix int type inference in range calls
Update for upstream changes.

Also change from rlib/dylib to lib (dylib is not necessary and
complicates matters in this new rpath-free world).