Make the compiler a parameter to obj_recipe:

* This also fixes a bug which prevented the depends file from being
  generated.