fixing problems in BerkeleyGW interface, courtesy of David A. Strubbe

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@11055 c92efa57-630b-4861-b058-cf58834340f0