Code cleanup and killing compiler warnings in fcrepo-kernel-impl