Profile settings changes propagate up the line

Changes were made for compatibility with MinGW/g++ compiler