Fixes various libharu issues

fixes #1