Periodic boundary value problems for third order ordinary differential equations