Fix compile errors.
Tested on MS VSE 2012.