I guess my next step would be to start debugging it. printf's or gdb - your choice. Should not be that hard with an open source lib.