Add String.startsWith and String.endsWith to JavaScript.

Change-Id: I6ddcce0fbc3aed9927dee79aa9fbc61ea353f793
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Refactor compiler and linker flags handling to avoid long arg lists.

Change-Id: I2eae85620a62f2343e99e6755a4047fa7ced9345
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>