Linux compilation fixes. (wip)