Fixed portability issue with variable declration.