Positive solutions to a class of second order differential equations with singular nonlinearities