fixed compilation errors in BluetoothHandler and MainActivity