Fixed compiler errors for mvs12.