Bugfix for gcc linking problems