Fixed windows build + easy sequential memory to math class convertion