fix startup errors with 2.x related to boost linkage on some platforms

Note: this should not be required because we do not actually link with ANY boost libraries, so the
occurence of this bug in ardour at run time indicates that the wrong version of boost was used and/or
incorrect flags for using boost are in use.

Fix from  David Henningsson <david.henningsson@canonical.com>