switch to error-prone annotations to replace LGPL dependency (#50)