Updated copyright years across the library.
Fix javac warnings.

 * Use superseding classes/methods instead of the deprecated ones
 * Suppress unchecked warnings where applicable

Signed-off-by: angelsl <hidingfromhidden@gmail.com>