fixed compile on older distributions