Added an xcodeproj
Added mac build script
Fix mac build

Templated function needed "typename" keyword in front of the templated type
Updated static library