The recipe works fine for me. The piece of redstone dust in the engine recipe is actually redstone not a lever. It takes 3 iron ingots, 1 redstone dust, 2 iron gears (buildcraft or railcraft), and 1 piston in this pattern.
i=iron ingot, r=redstone dust, g=iron gear, p=piston, _=blank
i i i...