do some actual coding

- silence warnings, mostly with casts
- split declaration of variables off from their initializations when
possible
- add more Xcode targets, so that it can build all tests
- re-enable dlfunc(), because I felt like it and I could