add missing import
fix access to unmapped memory
Merge pull request #31 from scrm/master

Append two little fixes to the 1.3 release