Fix Windows build.
Use context create attribs if it exists.