Lindstedt series for periodic solutions of beam equations with quadratic and velocity dependent nonlinearities