added support for ARM

Adding support for ARM.

Now it seems to be compiling on the Raspberry PI, and the basic tutorial is running fine.
I've not got the knowledge yet where this code would actually be used, so it's not tested thouroughly.

Why isn't perftools used as a git submodule btw? The support for ARM is already out there, but the source files here are outdated.