Boundary value problems at resonance for certain semilinear ordinary differential equations