Remove copy_swap module, fix sha256 endianess and target checking issues