fixes issue #29
made code more robust when C-Extensions are not built, addresses issue #27