fix compile error for Ubuntu 12.04

I'm not that familiar with c++ but this fixes the problem when building on Ubuntu 12.04