Replace references with pointers in proxy classes

Fixes compilation with GCC 4.8.
Add GCC versions of FORCE_INLINE and RESTRICT
Update gitignore
Cleanup whitespace