keystore: Fix build with gcc 4.7+ -Werror