fix build issues (linux debian squeeze)