Minor adjustments to align source code and compile portable profile libraries