Add function to determine length of decoded AAC packet

It's a stripped down version of aac_decode_frame_int which keeps only the
code needed to determine length of decoded data.
Update build script