Fixed typo in last commit causing segfault on POSIX. Fixes issue #10.