Fixed the build to work on debian squeeze