Updates for new makefile system.

Fixes compatibility with linux using built in libs.
Now ignores osx curl header files using new makefile features (will be integrated into the core shortly).