Unroll arrays of sampler2D because they're broken on Mali-400
Fix uninitialized variable in r_q3bsp
correct library order
cmake fixes for Xcode 6