A maximum principle for fourth order ordinary differential equations