fix cmake building, downgrade gcc to 4.8.2

Signed-off-by: Lauri Leukkunen <lauri.leukkunen@huawei.com>