Fix CS3 and below compatibility

Fixes #1