Fix DSM5 toolchains

To be merged together with #865. Solves https://github.com/SynoCommunity/spksrc/issues/671#issuecomment-40950310.

Note: Sourceforge is down atm...best to wait until it's back up before merging.