Adding OSX target and fixing several build config problems