Fix export problems in Makefile.