update opencv to 2.4.7.1

should supersede #419, #413, and #383, and possibly close #402.