OSX build: We have to make sure python 2 is default, because some packages won't build with python 3
Fix #467: Second part - fix binary path detection.

The binary path detection code borrowed from https://git.gnome.org/browse/gimp/tree/libgimpbase/gimpreloc.c?id=GIMP_2_8_6#n36
Fix synfig::get_binary_path() for Windows platform. Also fix code identation.
Win32 build: Synfig source location is detected corectly now.
Add OSX-specific code to synfig::get_binary_path(). Also rearrange code a bit.
Add forgotten header
Add fallback parameter for synfig::get_binary_pathsynfig::get_binary_path(). Some cleanup.
Don't call synfig::get_binary_path() twice in app.cpp.
Apply patch by Alex Valavanis (valavanisalex) to workaround the bug in intltool 0.50.2.
Cleanup
Suit better variable names
OSX build: Add debug mode.

To make debug build run the script in the following way:
$ DEBUG=1 ./autobuild/synfigstudio-osx-build.sh
Don't call synfig::get_binary_path() twice in Synfig Studio.
Fix the locale not properly detected when started as ./synfig or ./synfigstudio. Also should fix segfault for studio.
Remove redundant libproc.h header
Write different OS' cases in the same style for synfig::get_binary_path()
Comments
Cleanup
Copyright
Merge pull request #29 from morevnaproject/locales-fix-osx

Fix bug #467