Fix compile problems with clang3.5

Apparently getResultType is now called getReturnType, and param is used
more consistently.