Micro optimize the native face detector

Make the Matrix calculate the rectangle sums itself, this allows
for reuse of the row addresses and saves two multiplications.

Tweak which functions should be inlined. Enable more optimization
options.