Fix for Mac OS X 10.8 compilation issues.

Changed used GL version to 3.2 and put use of double vector definitions behind #ifdef.
Also removed references to old code from sync.profile.

Change-Id: I806cd882de22f828fbacd162c71b71f52bbd5fbe
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>