Update to match API change

Starting with build 2014.1.428 the return type for SubmitBug is not a
string instead of an int.

Added preprocessor commands to optionally compile the code both ways.