Fix debug/release flag for swift version