Platform-dependent environment modification in separate function.
Added --inst-counts flag (OCLGRIND_INST_COUNTS) to frontends.
Implemented simple instruction counting mechanism.
Instruction count uses locale to print thousands separators.
Only count instructions if --inst-counts used.