Brazil overcome a stubborn North Korean side in Johannesburg.