Fixed for compilation with ACML and gcc 4.8.2