Replaced malloc check in autotools to avoid failure on NetBSD

Fixes #13 on gnosek/fcgiwrap.