Refine SConstruct and add comments for future reference.