Fix main.c etc dependencies