Modification of icon handler to get code to compile on OS X 10.8