for os x with gcc 4.8.2