You need to learn serenity! This is a common situation. Even as you get more senior and are more able to affect things, you won't be able to make a perfect coding situation. Just try to do the best job you can, and be a good example yourself.
Know-it-all-superstar co-workers is also something that will never go away. There are a few things you can do though.