Approximation theorems in real algebraic geometry