get it to at least compile
cp complains if a previously generated framework is there
Clear up a large number of NSInteger/NSUInteger issues

- a few places used NSInteger in method declaration, but int in the implemntation:
  on 64bit these are different sized types
- using %d, %u for NSInteger/NSUInteger