Joining chemically incompatible materials for fused deposition modeling