fix compile warnings
fixed --autolink

Fixed a bug in autolink.cc: there was "<" instead of "<<". That could never work (with d>1).
Added a test for --autolink.
Merge remote-tracking branch 'upstream/master'