Error and warning logging

replaced all Gameplay3d logs with our internal error and warning macro (errors log to stderr, warnings to stdout);
fixed null pointer crash while processing none triangle based geometry