Adjustments to make the code build outside ClanLib