Comment performance counter calls.

Also, apply small fixes to Makefiles to work on amd64 and run on
Android.