Formula move main directory

small number of packages
Fix linking with gcc in OSX