Fixes for OSX.
* Linker doesn't need -fPIC, causes error.
* #pragma once in cpp files removed.