Fix redeclared without dllimport attribute: previous dllimport ignored
This error happens because cryptohelper and messagepart are part of a
static library but have export macros. This patch fix the issue by
removing the private static library, the code was exported so it didn't
made sense to have it in a private static library.