Adding old hacks (not included into 1.3.6) into release-1.3 branch
Merge pull request #1511 from jguille2/release-1.3

Adding old hacks (not included into 1.3.6) into release-1.3 branch