window: Remove compat declaration hack