these changes allowed me to compile with the latest opencv 2.4.9