Cleanup + simplified getPositions
Fix bugs, cleanup, macro to control sse usage
Ordering of libs to avoid linker errors
Commented out uncalled code.