Fixes an issue with g++ 4.4 (stan-dev/stan#375, previously fixed in
stan-dev/stan@66c57cfa746aa85ac2ac86c10d61d684e86e0900) but reintroduced
later.
Merge pull request #885 from ewan/g++44_fix

Fixes #375. Fixes an issue with g++ 4.4