Fixes for OS 10.10

- set profile to Core
- use texture instead of texture2D in shared