Some changes to version detecting made. Added new mutex to blit function.