Workaround static issue with externs

Also hooked input up to sample_coach
Fixed build error