fix compile error in ubuntu when compile freeImages