Fixes #8 and release 1.0.2

https://bugs.gentoo.org/show_bug.cgi?id=452466