vjr bug fix on mouse click, and code to help gcc not throw incorrect warnings, two unresolved in 4.8.1