First set of changes for compiling on OS X (no Pintool yet)