changed functional casts to c-list casts. Needed to compile on GCC 4.8.1 on OSX 10.8 and Fedora 19. Latest Intel compiler works in both cases