add CC 1.6 window API compatibility