fix some inline linkages in linux