Implement file_find* functions and environment_get_variable.

Apparently, these functions are declared but not implemented. That's an error in my book. I've committed an implementation from the compiler code; hopefully this doesn't break anything, because I can't test on Windows.