"Port" to linux (horrible patch to get the code building on linux).