Partial size calc and minor compiler warning fixes