Add #ifdef to malloc, which uses gcl_malloc if on OSX
Merge branch 'master' into osx_gcl
Change init, read, write and enqueue_kernel_range for OSX hosts
Style: add comments at #endif indicating the variable in the condition
CMakeLists.txt in kernel dir now generates LLVM bitcode files, and generated header and source file for OSX support.

Some extra changes: split up definition of shape struct (otherwise the files wouldn't be correctly generated)
Allocate memory for the camera struct and pass it as a pointer (some OpenCL implementations have problems passing structs 'directly')
Revert (Added wrong files) "CMakeLists.txt in kernel dir now generates LLVM bitcode files, and generated header and source file for OSX support."

This reverts commit b5a3c0b0eb49c4ae87f4ba9f60fd311c06894ceb.
Try 2: CMakeLists.txt in kernel dir now generates LLVM bitcode files, and generated header and source file for OSX support.

Some extra changes: split up definition of shape struct (otherwise the files wouldn't be correctly generated)
Allocate memory for the camera struct and pass it as a pointer (some OpenCL implementations have problems passing structs 'directly')
Correct the filepath. (Still not working once it's build, not in XCode either)
Build is now working correctly. Fixes issue #1: Structs should be passed around in the same address space at all times! Pass them as pointers.
Organize CMakeLists, fix build for linux, fix #include in kernel.cl
Revert "Organize CMakeLists, fix build for linux, fix #include in kernel.cl"

This reverts commit 8cce7990b97540c3772b38b72aab7911c52268e1.
Retry on fixing the build config
kernel/CMakeLists.txt: Add comments (because it's worthy of some documentation)
Also fixed CUDA in the Apple compatible build
Merge branch 'osx_gcl' of https://github.com/gfokkema/RT-Raytracing into osx_gcl
Fix the external definition of the cuda functions
Automatically rebuild when kernel.cl changes
Merge branch 'osx_gcl' of https://github.com/gfokkema/RT-Raytracing into osx_gcl
Merge branch 'osx_gcl'

fixes #1