Fix calloc arguments order bug

Also change include method to bypass compile error for certain compiler