try to fix ubuntu 12.04 compile error