Fixed CORE-4031: make install wrong under Debian Ubuntu 64 (and fixed some unrelated bugs in linux install)

git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@57722 65644016-39b1-43b1-bf79-96bc8fe82c15