libaac: fix pointer issues, add debug calls
libaac: some fixes