Fixed some of the issues reported by winapi-check.