How do I get the $language object inside a form builder?
Always use l() (or url(), which justs generates the URL) for generating links; then you, don't have to worry about the current language, base path, whatever clean URLs are enabled or not.

l(t('Back'), 'my/home');


That said, global $language should always work.