Compatibility fixes for node 0.10+, express 3, and newer versions of jade