Krein's entire functions and the Bernstein approximation problem