Made compilation on OSX easier and Updated Config to RbConfig

OSX Compilation was not supported out of the box so I just added the
correct paths and a small section to find the paths based on the OS
running.

Config was removed from Ruby some time ago so all those calls throw
warnings, updated then to use RbConfig instead.