fixed bug in profile configuration in makefiles.