GCC 4.7 Fixes and fix narrowing conversion for copybit