Some developers are building homes with an eye toward making them more resilient to extreme weather and friendlier to the environment at the same time.