Got mac working, fixed unsafe cast of float to double in matrices.
Builds on linux.
Got mac working, fixed unsafe cast of float to double in matrices.
Merge branch 'master' into mac-barely-working