make changes to work on debian squeeze