Switched to Codeblocks, fixed a bug in spritelayer optimalisation