Use better scope on RGL ifdef.