Move profile.d setup to compile