Improve SConstruct and remove repetition.