Remove Mac OS X 10.4 support. It's about time. Also, a bit of code refactoring.