attempt gcc4.4 compile fixes