Compact Framework support

Hello,

This is a pull request to support the Compact Framework.
Hope this helps

Arnaud SYLVESTRE