implement LWX/SWX. fix dmd 2.065 build.