fixed building linapple on gcc > 4.6