change pkg-config, add mp4box, and reorder code