fixed compilation issue on Lion