fast fixes to support const modifier in parameters; changed dllexport to dllimport