Include cast in call to strndup