Fixes for OS X:
- set profile to Core
- use texture instead of texture2D in shared
Merge pull request #1 from csherratt/master

Fixes for OS 10.10