refactored buildfiles for debian/linux
refactored debian buildfile