Fixes for Compact Framework