convert code to C89
added VS 2010 solution
fixed link & exported functions
Added packaging script for XBMC.