Djsopnet: fix small compiler bugs