Add sun_dream compatibility to build script