Miscellaneous small changes

APEL needs port 6162 if use_ssl=true, otherwise it doesn't work
Few changes are for enabling multi core