Don't use _FORTIFY_SOURCE with -O0
Use APPLE to detect osx in cmake
Remove extern "C" from renderer code