jni/build.sh: fix broken firebird header symlink & replace `realpath` with `readlink -f`

Should fix #606