MSMF video capture fixes

These fixes were already applied to 2.4 branch (in #3240, #3243, #3247, #3251, #3260).
They need to be separately applied to 3.0 branch because MSMF module resides now not in 'highgui' folder but in 'videoio'.