Update config.mk for BSD, fix wrap issue in config.h