A bunch of cross-platform fixes for mpw.c + make config file optional and read master password from input instead.