Fix compile errors with GCC 4.7, relates #177