update opencv to 2.4.7.1

should supersede #419 and #383