updated source and add OSX builds