improvements to compile, including support for .profile.d