Program ok in XP, but gives library error in XUbuntu?